package partThree.homeWork.Stu;

/**
 * 删除学生信息的类
 */
public class DeleteStu {
    public static void deleteStu(){
        System.out.println("请通过学号来删除学生信息！");
        int id = StuTest.sc.nextInt();
        for (Student student: StuTest.stuTestList){
            if (student.getId() == id){
                StuTest.stuTestList.remove(student);
                System.out.println(student+"的信息已删除！");
            }
        }
    }
}
